import request from '@/router/axios';
const urlPrefix = '/admin';

export function list(data) {
    return request.post(urlPrefix + '/supplier/list', data);
}
export function create(data) {
    return request.post(urlPrefix + '/supplier/add', data);
}
export function update(data) {
    return request.post(urlPrefix + '/supplier/modify', data);
}
export function removeById(id) {
    return request.post(urlPrefix + '/supplier/delete', {
        id
    });
}
export function removeByIds(ids) {
    return request.post(urlPrefix + '/supplier/delete', {
        id:ids
    });
}

// export function listAll(supplierName=''){
//     return request.post(urlPrefix + '/supplier/search',{supplierName});
// }
